home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_nub_dynalight.cog < prev    next >
Text File  |  1999-11-15  |  1KB  |  58 lines

  1. # Jones 3D Cog Script
  2. #
  3. # nub_DynaLight.cog
  4. #
  5. # [TRM] [TL]
  6. #
  7. # 10/21/98 RT: Added radius        8/29/99 GGJ:  Changed radius.  : )
  8. #
  9. # (C) 1999 LucasArts Entertainment Company LLC. All Rights Reserved
  10. #
  11. # ========================================================================================
  12. symbols
  13.  
  14. message    startup
  15.  
  16. thing    thing0
  17. thing    thing1
  18. thing    thing2
  19. thing    thing3
  20. thing    thing4
  21. thing    thing5
  22. thing    thing6
  23.  
  24. flex    rval=0.5    local
  25. flex    gval=0.5    local
  26. flex    bval=0.5    local
  27. flex    radius=0.001    local            #GGJ  changed from 0.1
  28. flex    speed=1.0    local
  29.  
  30. vector    color        local
  31.  
  32. int        numThings=7    local
  33. int        index        local
  34.  
  35. end
  36.  
  37. # ========================================================================================
  38. code
  39.  
  40. startup:
  41.  
  42. Sleep(5.0); #remove this later
  43.  
  44. color = VectorSet(rval, gval, bval);
  45.  
  46. for (index = 0; index <= numThings; index = index + 1)
  47.     {
  48.     if (thing0[index] > -1)
  49.         {
  50.         SetThingLight(thing0[index], color, radius, speed);
  51.         }
  52.     }
  53.  
  54. return;
  55.  
  56. # ........................................................................................
  57. end
  58.